package net.gxtvsgwt.client.demo.type;

import net.gxtvsgwt.client.demo.BaseDemo;

import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.Widget;

public class TextBoxDemo extends BaseDemo {

	@Override
	public Widget createGxt() {
		HorizontalPanel panel = new HorizontalPanel();
		for (int i = 0; i < dataSize; i++) {
			panel.add(new com.extjs.gxt.ui.client.widget.form.TextField<String>());
		}
		return panel;
	}

	@Override
	public Widget createGwt() {
		HorizontalPanel panel = new HorizontalPanel();
		for (int i = 0; i < dataSize; i++) {
			panel.add(new TextBox());
		}
		return panel;
	}

	@Override
	public String getName() {
		return "TextBox";
	}
}
